﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Dashboard.Master"
    Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<div id="toolbar">
    <script type="text/javascript">
        $(document).ready(function() {
            $('#SaveEntry').click(function() {
                $('#AddForm').submit();
            });
        });
    </script>
    <ul id="toolbar_item">
        <li>
            <a href="#"><img alt="" src="../../Content/icons/page_save.png" 
                style="width: 16px; height: 16px" / id="SaveEntry" name="SaveEntry"></a>
        </li>
    </ul>
</div>
<% using (Html.BeginForm("AddEntry", "Dashboard", FormMethod.Post, new { ID="AddForm", Name="AddForm" }))
   {%>
    <% Html.RenderPartial("EntryForm"); %>
<%} %>		
</asp:Content>
